#ifndef __UI_H__
#define __UI_H__

// 引用头文件
#include "head.h"


// 函数声明
// 登陆函数

// 菜单选项函数
int display_menu(const wchar_t *title, const wchar_t *choices[], int n_choices) ;
void update_menu(WINDOW *menu_win, const wchar_t *title, int highlight, const wchar_t *choices[], int n_choices);




#define LINE_1  "  ______"
#define LINE_2  "  L,.   ',"
#define LINE_3  "   \\      ',_"
#define LINE_4  "    \\   @   ',"
#define LINE_5  "     \\ ^~^    ',"
#define LINE_6  "      \\         ',"
#define LINE_7  "       \\___'____  ',_"
#define LINE_8  "       [______       \"'==.I\\_____________..--\"<__\\\\_n@___4\\,_"
#define LINE_9  "     ,..-=T         __   ____________          \\/  \"'\" 0<==  \"'-.,___"
#define LINE_10 "     I____|_____    }_>=========I>=**\"\"''==-------------==-   \" |   \"'-.,___"
#define LINE_11 "[_____,.--'\"                             \"\"--=<\"\"-----=====+==--''\""
#define LINE_12 "     \"\"'-=+..,,__,-----,_____                  -=* |"
#define LINE_13 "                 |__   /-----'#------.,I_---------'\""
#define LINE_14 "                    \"\"\"\"'--..__         _.>"



#define SMOKE_CHARS ".:+*"
#define NUM_SMOKE_CHARS 4


// 在指定位置打印字符串
int my_mvaddstr(int y, int x, char *str);

// 解析选项字符串
void option(char *str);

// 添加飞机形状到屏幕指定位置
int add_plane(int x);

// 添加烟雾效果
void add_smoke_trail(int x, int trail_length);

//封装飞机动效的函数
void Flying_plane();

#endif // __UI_H__
